<?php /* Smarty version 2.6.26, created on 2015-08-03 08:34:01
         compiled from ../Common/right.html */ ?>
	<div id='right'>
		<?php if ($_SESSION['uid'] && $_SESSION['uname']): ?>
		<div class='userinfo'>
			<dl>
				<dt>
					<a href="./index.php?c=own&a=my_face"><img src="<?php echo $this->_tpl_vars['uData']['face']; ?>
" width='48' height='48' alt="请上传头像"/></a>
				</dt>
				<dd class='username'>
					<a href="./index.php?c=own&uid=<?php echo $_SESSION['uid']; ?>
">
						<b><?php echo $this->_tpl_vars['uData']['username']; ?>
</b>
					</a>
					<a href="./index.php?c=own&a=my_level">
						<i class='level lv1' title='Level 1'></i>
					</a>
				</dd>
				<dd>金币：<a href="" style="color: #888888;"><?php echo $this->_tpl_vars['uData']['point']; ?>
<b class='point'></b></a></dd>
				<dd>经验值：<?php echo $this->_tpl_vars['uData']['exp']; ?>
</dd>
			</dl>
			<table>
				<tr>
					<td>回答数</td>
					<td>采纳率</td>
					<td class='last'>提问数</td>
				</tr>
				<tr>
					<td><a href=""><?php echo $this->_tpl_vars['uData']['answer']; ?>
</a></td>
					<td><a href="">20%</a></td>
					<td class='last'><a href=""><?php echo $this->_tpl_vars['uData']['ask']; ?>
</a></td>
				</tr>
			</table>
			<ul>
				<li><a href="./index.php?c=own&a=my_ask&uid=<?php echo $_SESSION['uid']; ?>
">我提问的</a></li>
				<li><a href="./index.php?c=own&a=my_answer&uid=<?php echo $_SESSION['uid']; ?>
">我回答的</a></li>
			</ul>
		</div>
		<?php else: ?>
		 <div class='r-login'>
			<span class='login'><i></i>&nbsp;登录</span>
			<span class='register'><i></i>&nbsp;注册</span>
		</div> 
		<?php endif; ?>
	<div class='clear'></div>
	<div class='star'>
		<p class='title'>后盾问答之星</p>
		<span class='star-name'>本日回答问题最多的人</span>
		<!--需要增加判断当前登录人的信息，如果是自己进入的是自己空间，如果是其他人进入其他人空间-->
			<div class='star-info'>
				<div>
					<a href="./index.php?c=other&uid=<?php echo $this->_tpl_vars['maxuidData']['uid']; ?>
" class='star-face'>
						<img src="<?php echo $this->_tpl_vars['maxuidData']['face']; ?>
" width='48px' height='48px' alt="头像站位"/>
					</a>
					<ul>
						<li><a href="./index.php?c=other&uid=<?php echo $this->_tpl_vars['maxuidData']['uid']; ?>
"><?php echo $this->_tpl_vars['maxuidData']['username']; ?>
</a></li>
						<i class='level lv1' title='Level 1'></i>
					</ul>
				</div>
				<ul class='star-count'>
					<li>回答数：<span><?php echo $this->_tpl_vars['maxuidData']['answer']; ?>
</span></li>
					<li>采纳率：<span>20%</span></li>
				</ul>
			</div>
		<span class='star-name'>历史回答问题最多的人</span>

		<div class='star-info'>
			<div>
				<a href="./index.php?c=other&uid=<?php echo $this->_tpl_vars['HisAskData']['uid']; ?>
" class='star-face'>
					<img src="<?php echo $this->_tpl_vars['HisAskData']['face']; ?>
" width='48px' height='48px' alt="头像站位"/>
				</a>
				<ul>
					<li><a href="./index.php?c=other&uid=<?php echo $this->_tpl_vars['HisAskData']['uid']; ?>
"><?php echo $this->_tpl_vars['HisAskData']['username']; ?>
</a></li>
					<i class='level lv1' title='Level 1'></i>
				</ul>
			</div>
			<ul class='star-count'>
				<li>回答数：<span><?php echo $this->_tpl_vars['HisAskData']['answer']; ?>
</span></li>
				<li>采纳率：<span>100%</span></li>
			</ul>
		</div>
	</div>
	<div class='star-list'>
		<p class='title'>后盾问答助人光荣榜</p>
		<div>
			<ul class='ul-title'>
				<li>用户名</li>
				<li style='text-align:right;'>帮助过的人数</li>
			</ul>
			<ul class='ul-list'>
				<?php $_from = $this->_tpl_vars['answerData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['v']):
?>
				<li>
					<a href="./index.php?c=other&uid=<?php echo $this->_tpl_vars['v']['uid']; ?>
"><i class='rank r1'></i><?php echo $this->_tpl_vars['v']['username']; ?>
</a>
					<span><?php echo $this->_tpl_vars['v']['answer']; ?>
</span>
				</li>
				<?php endforeach; endif; unset($_from); ?>			
			</ul>
		</div>
	</div>
</div>